package com.iuie.ns.web.tags;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import com.iuie.ns.web.beans.DataFieldVO;

/**
 * @desc 数据集字段定义
 * @createTime 2017年7月6日 下午3:40:48
 * @author iuie
 */
public class DataFieldTag extends SimpleTagSupport {
    
    private String name;
    
    private String text = "";
    
    private String width;
    
    private Boolean visiable = true;
    
    private String align;
    
    private String cssClass;
    
    private Boolean sort = false;
    
    private String display;

    private String dropdown;
    
    private String dropView;
    
    @Override
    public void doTag() throws JspException, IOException {
        DataFieldVO dataField = new DataFieldVO(name, width, visiable, align, cssClass, sort, display, dropdown, dropView);
        DataSetTag parent = (DataSetTag) getParent();
        parent.getDataFields().add(dataField);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public Boolean getVisiable() {
        return visiable;
    }

    public void setVisiable(Boolean visiable) {
        this.visiable = visiable;
    }

    public String getAlign() {
        return align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public String getCssClass() {
        return cssClass;
    }

    public void setCssClass(String cssClass) {
        this.cssClass = cssClass;
    }

    public Boolean getSort() {
        return sort;
    }

    public void setSort(Boolean sort) {
        this.sort = sort;
    }
    
    public String getDisplay() {
        return display;
    }
    public void setDisplay(String display) {
        this.display = display;
    }
    public String getDropdown() {
        return dropdown;
    }
    public void setDropdown(String dropdown) {
        this.dropdown = dropdown;
    }
    public void setDropView(String dropView) {
        this.dropView = dropView;
    }
    public String getDropView() {
        return dropView;
    }
}
